<?php
/**
 * Created by novebeta.
 * Date: 2/5/13
 * Time: 5:29 AM
 */
Yii::import('ext.portlet.XPortlet');
class SearchBlock extends XPortlet
{
  //  public $title='Search';

    protected function renderContent()
    {
            // $this->cssFile=bu().'/css/search.css';
        echo  CHtml::beginForm(array('search/search'), 'get', array('style'=> 'inline')) .
             '<div style="position:absolute;top:0px;left:0px;z-index: 51;">'.
             '<img src="'.bu().'/img/sf_cari.png" border="0" />'.             
             '</div>'.
              '<div style="position:absolute;top:4px;left:5px;z-index: 52;">'.
                 CHtml::textField('q', '', array('placeholder'=> 'ketik pencarian ...','style'=>'width:150px;background:none;border:none')) .
             '</div>'.             
             '<div style="position:absolute;top:0px;right:0px;z-index: 52;">'. 
             CHtml::imageButton(bu().'/img/sf_tombol_search.png',array('border'=>'0','class'=>'buttoncari')) .
             '</div>'.
             CHtml::endForm('');
          
    }
}
